Skip to content

Conversation

@rjrudin
Copy link
Contributor

@rjrudin rjrudin commented Oct 27, 2025

No description provided.

Copilot AI review requested due to automatic review settings October 27, 2025 16:40
@github-actions
Copy link

github-actions bot commented Oct 27, 2025

Copyright Validation Results
Total: 4 | Passed: 3 | Failed: 0 | Skipped: 1 | at: 2025-10-27 19:43:03 UTC | commit: 02a20a3

⏭️ Skipped (Excluded) Files

  • Jenkinsfile

✅ Valid Files

  • test-complete/nodejs-optic-from-triples.js
  • test-complete/nodejs-optic-generate-views.js
  • test-complete/nodejs-optic-redaction.js

✅ All files have valid copyright headers!

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR introduces a new test deployer approach by restructuring test setup and deployment processes in the Jenkins pipeline. The changes replace Node.js-based setup scripts with Gradle-based deployment commands and add reliability improvements.

Key Changes:

  • Added a retry mechanism with a sleep delay for the mlWaitTillReady command to improve test reliability
  • Replaced Node.js setup scripts with Gradle deployment tasks in the E2E test workflow
  • Reorganized deployment steps to use a new test-complete-app-mlDeploy directory

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines 14 to +16
./gradlew -i mlWaitTillReady
sleep 3
./gradlew -i mlWaitTillReady
Copy link

Copilot AI Oct 27, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The hardcoded sleep duration of 3 seconds is a magic number without explanation. Consider adding a comment explaining why this delay is needed, or better yet, replace the fixed sleep with a configurable retry mechanism with exponential backoff to handle varying server startup times more reliably.

Suggested change
./gradlew -i mlWaitTillReady
sleep 3
./gradlew -i mlWaitTillReady
# Retry mlWaitTillReady with exponential backoff up to 5 times
max_attempts=5
attempt=1
delay=2
until ./gradlew -i mlWaitTillReady; do
if [ $attempt -ge $max_attempts ]; then
echo "mlWaitTillReady failed after $max_attempts attempts."
exit 1
fi
echo "mlWaitTillReady not ready, retrying in $delay seconds (attempt $attempt/$max_attempts)..."
sleep $delay
attempt=$((attempt+1))
delay=$((delay*2))
done

Copilot uses AI. Check for mistakes.
cd test-complete-app-mlDeploy
./gradlew -i mlDeploy
cd test-complete-app
./gradlew -i mlDeploy
Copy link

Copilot AI Oct 27, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The -g $PWD flag was removed from the gradlew command. If this flag was previously used to set a custom Gradle user home directory for isolation purposes in CI/CD, removing it may cause unintended side effects such as cache collisions or permission issues. Verify that removing this flag is intentional and does not impact build isolation.

Copilot uses AI. Check for mistakes.
@rjrudin rjrudin force-pushed the feature/switch-to-new-deploy branch 3 times, most recently from c7aae15 to 977f9c6 Compare October 27, 2025 18:48
Fixing a couple tests to not write schemas to a modules database.
@rjrudin rjrudin force-pushed the feature/switch-to-new-deploy branch from 977f9c6 to 02a20a3 Compare October 27, 2025 19:42
@rjrudin rjrudin merged commit 124d192 into develop Oct 27, 2025
3 checks passed
@rjrudin rjrudin deleted the feature/switch-to-new-deploy branch October 28, 2025 15:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants